package com.chinamoney.wppm.service;

import java.util.Arrays;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.chinamoney.wppm.dao.UserDao;

/**
 * 
 * @author Jason_Jiang
 *
 */
@Service
public class UserService {

	@Autowired
	private UserDao userDao;
	
	@Transactional(readOnly = true)
	public String getUserNameByIds(String ids) {
		String[] arrayIds = ids.split(";");
		List<String> idList = Arrays.asList(arrayIds);
		return userDao.getUserNameByIds(idList);
	}
	
}
